﻿using System;
using System.ComponentModel.DataAnnotations;

namespace MiniSched.Data {

    [MetadataType(typeof(MarketMessageSubscription.MetaData))]
    public partial class MarketMessageSubscription : IMiniSchedEntity {

        public class MetaData {

            [Required]
            public virtual EmailAddress EmailAddress { get; set; }

            [Required]
            public virtual MarketMessage MarketMessage { get; set; }
        }
    }
}
